import request from '@/utils/request'

// 查询药品订单管理列表
export function listMedicineOrderItem(query) {
  return request({
    url: '/medical/medicineOrderItem/list',
    method: 'get',
    params: query
  })
}

// 查询订单列表
export function listMedicineOrder(query) {
  return request({
    url: '/medical/medicineOrder/list',
    method: 'get',
    params: query
  })
}

// 查询药品列表
export function listMedicine(query) {
  return request({
    url: '/medical/medicine/list',
    method: 'get',
    params: query
  })
}

// 查询药品订单管理详细
export function getMedicineOrderItem(id) {
  return request({
    url: '/medical/medicineOrderItem/' + id,
    method: 'get'
  })
}

// 新增药品订单管理
export function addMedicineOrderItem(data) {
  return request({
    url: '/medical/medicineOrderItem',
    method: 'post',
    data: data
  })
}

// 修改药品订单管理
export function updateMedicineOrderItem(data) {
  return request({
    url: '/medical/medicineOrderItem',
    method: 'put',
    data: data
  })
}

// 删除药品订单管理
export function delMedicineOrderItem(id) {
  return request({
    url: '/medical/medicineOrderItem/' + id,
    method: 'delete'
  })
}
